$(function() {
	
	var url = "http://uploads.mars.com/local/upload";
    $('#fileupload').fileupload({
        url: url,
        type:"POST",
        dataType:"JSON",
        autoUpload : false,
        acceptFileTypes: /(\.|\/)(jpe?g|png)$/i,
        formData: {path: "/aa/bb"},
        done: function (e, data) {
        	console.info(data);
        	console.info(data.result);
        },
        fail:function(e,data){
        	console.info(e);
        	console.info(data);
            console.log("上传失败："+data.errorThrown);
        }
    });
	
});